package com.woniuxy.commons.entity;

import com.woniuxy.commons.vo.InvestVo;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class Invest {
    private String ino;
    private Integer uid;
    private String pno;
    private BigDecimal lmoney;
    private BigDecimal tmoney;
    private BigDecimal rmoney;
    private BigDecimal interest;
    private BigDecimal rinterest;
    private BigDecimal smoney;
    private LocalDateTime ltime;

    public void setByInvestVo(InvestVo investVo){
        this.uid = investVo.getUid();
        this.pno = investVo.getPno();
        this.lmoney = investVo.getLmoney();
        this.tmoney = investVo.getTmoney();
        this.rmoney = investVo.getRmoney();
        this.interest = investVo.getInterest();
        this.rinterest = investVo.getRinterest();
    }
}
